package org.yate.oa.service.imp;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.yate.oa.dao.IBaseMapperDao;
import org.yate.oa.dao.mapper.PerformanceMapper;
import org.yate.oa.model.PerformanceEntity;
import org.yate.oa.service.IPerformanceService;

@Service
public class PerformanceService extends BaseService<PerformanceEntity, Integer> implements IPerformanceService {
	@Resource(name = "performanceMapper")
	private PerformanceMapper performanceDao;

	@Override
	protected IBaseMapperDao<PerformanceEntity, Integer> getMapperDao() {
		return this.performanceDao;
	}

	@Override
	public Integer addEntity(PerformanceEntity e) {
		return performanceDao.addEntity(e);
	}

	@Override
	public List<PerformanceEntity> getEntitiesBy(PerformanceEntity e) {
		return performanceDao.getEntitiesBy(e);
	}

	@Override
	public PerformanceEntity getEntityBy(PerformanceEntity e) {
		return performanceDao.getEntityBy(e);
	}

	@Override
	public PerformanceEntity getLastPerformance(PerformanceEntity e) {
		return performanceDao.getLastPerformance(e);
	}

	@Override
	public void updateStatus(PerformanceEntity e) {
		performanceDao.updateStatus(e);
	}

	@Override
	public List<PerformanceEntity> getMyOrgEntities(Map<String, Object> map) {
		return performanceDao.getMyOrgEntities(map);
	}

}
